<%-- 
    Document   : gioithieu
    Created on : Oct 8, 2011, 12:34:59 AM
    Author     : lethong
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="model.pojo.baivietPOJO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%
    ArrayList<baivietPOJO> listbv = (ArrayList<baivietPOJO>) request.getAttribute("bvListThongbao");
%>
<div class="titleArticle">THÔNG BÁO</div>
<%for (int i = 0; i < listbv.size(); i++) {
        baivietPOJO bv = listbv.get(i);
%>
<div class="ArticleGroup">
    <span class="sttArticle"></span>
    <p class="nameArticle"><%= bv.getTenbaiviet()%></p>
    <div class="contentMsg"><%=bv.getNoidung()%></div>
</div>
<%}%>  
<script type="text/javascript">
    $('p.nameArticle:first').css('color','#50a0e5').next().slideToggle('fast','easeOutCubic');
    $('p.nameArticle').click(function(){
        $('p.nameArticle').css('color','#000');
        $.scrollTo($(this), {duration:'slow', easing:'easeOutCubic'});
        $(this).css('color','#50a0e5');
        $(this).next().slideToggle('fast','easeOutCubic');
    });  
</script>